//package com.huwei.data.impl;
//
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//
//import com.huwei.data.AuthenticationDataSource;
//import com.huwei.entity.UserAccount;
//
//@Order(2)
//@Component("rpcDataSource")
//@FeignClient(value="UserInformationServer" , fallback=AuthenticationDataSourceFusing.class)
//public interface AuthenticationRPCDataSource extends AuthenticationDataSource{
//	
//	@GetMapping("/api/user/{username}")
//	UserAccount findByUsername(@PathVariable("username")String username);
//	
//	@GetMapping("/api/user/{id}")
//	UserAccount findById(@PathVariable("id")long id);
//	
//	@PutMapping("/api/user/save")
//	UserAccount save(@RequestParam("user")UserAccount user);
//	
//	@GetMapping("/api/user/{phone}")
//	UserAccount findByPhone(@RequestParam("phone") String phone);
//	
//	@PostMapping("/api/user/update")
//	Integer update(@RequestParam("user")UserAccount user);
//}
